package com.smart.campus.interfaces;


import com.smart.campus.dto.DangerDetails;
import com.smart.campus.dto.HiddenDanger;
import com.smart.campus.pojo.PagedResponse;
import com.smart.campus.pojo.ResponseResult;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

public interface DangerServiceApi {


    @RequestMapping(value = "danger/findDangerPagination")
    public PagedResponse<HiddenDanger> findDangerPagination(@RequestBody HiddenDanger hiddenDanger,
                                                            @RequestParam(value = "pageNum",defaultValue = "1") Integer pageNum,
                                                            @RequestParam(value = "pageSize",defaultValue = "1") Integer pageSize);

    @RequestMapping(value = "danger/addDanger")
    public void addDanger(@RequestBody HiddenDanger hiddenDanger);

    @RequestMapping(value = "danger/getDangerById")
    public HiddenDanger getDangerById(@RequestParam(value = "id") Long id);

    @RequestMapping(value = "danger/assignPersonnelDanger")
    public void assignPersonnelDanger(@RequestBody DangerDetails dangerDetails);
}
